<%= stylesheet_link_tag "form.css"%>

<% form_for @event do |f| %>

<fieldset style="width:600px;">
	<legend style="font-weight:bold; border: 1px solid; background:white;">Create an Event:</legend>
	
	<div class="row">
      <span class="label">Event Name:</span>
	  <span	class="formw">
	  	<%= f.text_field :name, :align=>"left" %>
	  </span>
    </div>

	<div class="row">
      <span class="label">Event Description:</span>
	  <span	class="formw">
	  	<%= f.text_area :description, :size => "30x5" %>
	  </span>
    </div>
	
	<div class="row">
      <span class="label">Event Duration:</span>
	  <span	class="formw">
	  	<%= f.text_field :duration %><%= ' minute(s)' %>
	  </span>
    </div>
	
	<div class="row">
      <span class="label">Current Event Times:</span>
	  <span	class="formw">
	  	<% if @event_times.blank? %>
			There are not any current event times.
		<% else %>
			<% @event_times.each do |e| %>
				<li>
					<%= e.date_begin %> <%= e.date_end %>+30
				</li>
			<% end %>
		<% end %>
	  </span>
    </div>
	
	<div class="row">
      <span class="label"></span>
	  <span	class="formw">
	  	<%= link_to "Add Event Time", {:controller => 'event_time', :action => 'new'} %>
	  </span>
    </div>
	
	<div class="row">
      <span class="label"></span>
	  <span	class="formw">
		<%= submit_tag %>	
	  </span>
    </div>

</fieldset>
<% end %>